<?php
/**
 * 文章分类接口
 */
class ArticleCatController extends \Our\Controller_AbstractApi {

    /**
     * 文章分类列表
     */
    public function listAction(){
        $mysql = \Mysql\ArticleCatModel::getInstance();
        $columns = array('cat_id','cat_name');
        $where = array('cat_type'=>0);
        $order = 'sort_order asc';
        $data  = $mysql->fetchAll($columns,$where,$order);
        echo $this->jsonEncode($this->apiData($data));
    }
}
